﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
     
    public class miniprogram_menu_role
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public string diy_menu_id { get; set; }
        /// <summary>
        /// 对应权限iD
        /// </summary>
        public string role_id { get; set; }
    }

    public class miniprogram_menu
    {  
        /// <summary>
        /// 系统内部ID
        /// </summary>
        public string menu_id { get; set; } 
        /// <summary>
        ///  自定义菜单ID
        /// </summary>
        public string diy_menu_id { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        ///  菜单图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 设置的路由
        /// </summary>
        public string navigate { get; set; } 
        /// <summary>
        /// 所属上级
        /// </summary>
        public string parent_id { get; set; }
        /// <summary>
        /// 所属用户ID
        /// </summary>
        public string baseuserid { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
    }


   

    #region 业务流
    public class create_role_params
    {
        /// <summary>
        ///  角色内容
        /// </summary>
        public Role role { get; set; }

        /// <summary>
        ///  权限选择
        /// </summary>
        public List<string> diy_menus { get; set; }
    }
    /// <summary>
    ///  
    /// </summary>
    public class minu_menu_tree
    {
        public minu_menu_tree()
        {
            this.meta = new VueMenuMate();
        }
        public string name { get; set; }

        public string path { get; set; }

        public VueMenuMate meta { get; set; }
        /// <summary>
        /// 是否最下级
        /// </summary>
        public bool IsLast { get; set; }
        public bool ischeck { get; set; }
        public List<minu_menu_tree> children { get; set; }
    }

    #endregion
}
